package com.example.android_practice.lifeCycle;

import android.app.Activity;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;


/**
 * Created by tangcan on 20/9/26.
 * 修改人：tangcan
 * 修改时间：20/9/26 上午9:51
 * 修改备注：
 */
public class MyLocationListener implements LifecycleObserver {

    public MyLocationListener(){
        //初始化操作
//        iniLocationManager();
    }


    interface OnLocationChangeListener{

        void onChanged(double latitude,double longitude);
    }

    public MyLocationListener(Activity context,OnLocationChangeListener onLocationChangeListener){

    }

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    private void startGetLocation(){

    }

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
    private void stopGetLocation(){

    }



}
